<%@page import="java.util.Date"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<head>


</head>
<body>
	<div class="navi-block">
		<div>
			<a href="home.html">Trang Chủ </a> <img src="resources/images/arrow.png" />
		</div>
		<c:forEach var="block" items="${navi}">
			<div>
				<a href="detailcategory.html?id=${block.categoryId}">${block.categoryName}</a> <img src="resources/images/arrow.png" />
			</div>
		</c:forEach>


	</div>
	<div class="content">
		<!--main detail category-->
		<div class="main-detail-category">
			<div class="title">${category.categoryName}</div>

			<c:forEach var="product" items="${category.products}">

				<c:forEach var="detail" items="${product.productDetails}">
				
					<div class="item-main-category">
						<a href="detail.html?id=${detail.productDetailId}"> <img src="${detail.image.imageUrl}" />
							<div class="items-details">
								<div class="item-name">${detail.getName()}</div>
								<div class="item-price">${detail.price} VND</div>
							</div>
						</a>
					</div>
				</c:forEach>

			</c:forEach>

		</div>

		<!--add detail-->
		<div class="add-detail-category">
			<div class="title">SẢN PHÂM BÁN CHẠY</div>
			<div class="item-add-category">
				<a href="#"> <img src="images/Milan 14-15 Home Kit.jpg" />
					<div class="items-details">
						<div class="item-name">Milan sân nhà 2014</div>
						<div class="item-price-old">90.000 VND</div>
						<div class="item-price">80.000 VND</div>
					</div>
				</a>
			</div>

			<div class="item-add-category">
				<a href="#"> <img src="images/Milan 14-15 Home Kit.jpg" />
					<div class="items-details">
						<div class="item-name">Milan sân nhà 2014</div>
						<div class="item-price-old">90.000 VND</div>
						<div class="item-price">80.000 VND</div>
					</div>
				</a>
			</div>

			<div class="item-add-category">
				<a href="#"> <img src="images/Milan 14-15 Home Kit.jpg" />
					<div class="items-details">
						<div class="item-name">Milan sân nhà 2014</div>
						<div class="item-price-old">90.000 VND</div>
						<div class="item-price">80.000 VND</div>
					</div>
				</a>
			</div>

			<div class="item-add-category">
				<a href="#"> <img src="images/Milan 14-15 Home Kit.jpg" />
					<div class="items-details">
						<div class="item-name">Milan sân nhà 2014</div>
						<div class="item-price-old">90.000 VND</div>
						<div class="item-price">80.000 VND</div>
					</div>
				</a>
			</div>

			<div class="item-add-category">
				<a href="#"> <img src="images/Milan 14-15 Home Kit.jpg" />
					<div class="items-details">
						<div class="item-name">Milan sân nhà 2014</div>
						<div class="item-price-old">90.000 VND</div>
						<div class="item-price">80.000 VND</div>
					</div>
				</a>
			</div>
		</div>
		<div class="add-detail-category">
			<div class="title">SẢN PHÂME MỚI</div>
		</div>
	</div>
	<!-- CONTENT : START -->

</body>